// import './assets/main.css'
// 引入初始化样式文件
import "@/styles/common.scss";
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import { createApp } from "vue";
import { createPinia } from "pinia";

import App from "./App.vue";
import router from "./router";

// 引入懒加载指令插件并且注册
import { lazyPlugin } from "@/directives";
// 引入全局组件注册
import {compoentPlugin} from '@/components'
const pinia = createPinia();
//注册持久化插件
pinia.use(piniaPluginPersistedstate)
const app = createApp(App);

app.use(pinia);
app.use(router);
app.use(lazyPlugin);
app.use(compoentPlugin)
app.mount("#app");

